package com.shhm.common.entity.system;

import lombok.Data;
import org.springframework.data.redis.core.ScanOptions;

/**
 * @author JackZ
 * @version 1.0
 * @description: TODO
 * @date 2025/9/6 下午4:42
 */
@Data
public class SysRedisCache {
    private String prefix;
    private String cacheKey;
    private Object cacheClassType;
    private Integer limit;

    public ScanOptions createScanOptions() {
        return ScanOptions.scanOptions()
                .match(cacheKey)
                .count(limit)
                .build();
    }
}
